package com.ruoyi.project.orderSystem.service;

import java.util.List;

import com.ruoyi.project.orderSystem.domain.WorkOrder;
import com.ruoyi.project.orderSystem.domain.WorkOrderAudit;

/**
 * 工单审核主Service接口
 * 
 * @author wangshuo
 * @date 2021-03-04
 */
public interface IWorkOrderAuditService 
{
    /**
     * 查询工单审核主
     * 
     * @param id 工单审核主ID
     * @return 工单审核主
     */
    public WorkOrderAudit selectWorkOrderAuditById(Long id);

    /**
     * 查询工单审核主列表
     * 
     * @param workOrderAudit 工单审核主
     * @return 工单审核主集合
     */
    public List<WorkOrderAudit> selectWorkOrderAuditList(WorkOrderAudit workOrderAudit);

    /**
     * 新增工单审核主
     * 
     * @param workOrderAudit 工单审核主
     * @return 结果
     */
    public int insertWorkOrderAudit(WorkOrderAudit workOrderAudit);

    /**
     * 修改工单审核主
     * 
     * @param workOrderAudit 工单审核主
     * @return 结果
     */
    public int updateWorkOrderAudit(WorkOrderAudit workOrderAudit);

    /**
     * 批量删除工单审核主
     * 
     * @param ids 需要删除的工单审核主ID
     * @return 结果
     */
    public int deleteWorkOrderAuditByIds(Long[] ids);

    /**
     * 删除工单审核主信息
     * 
     * @param id 工单审核主ID
     * @return 结果
     */
    public int deleteWorkOrderAuditById(Long id);

    List<WorkOrder> workOrderUnAudit(WorkOrder workOrder);

    int auditWorkOrder(WorkOrderAudit workOrderAudit);
}
